package Thread_;

import java.util.concurrent.atomic.AtomicInteger;

public class Thread23 {
    public static void main(String[] args) {
        AtomicInteger integer = new AtomicInteger(10);
        int i1 = integer.getAndIncrement(); //i++
        System.out.println("i1= "+i1);
        int i = integer.incrementAndGet(); //++i
        System.out.println("i= "+ i);
    }
}
